package com.swsc.solarverse.service.forward.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.swsc.solarverse.dao.entity.forward.ForwardStringLeDiagnoseRecordDO;
import com.swsc.solarverse.dao.mapper.forward.ForwardStringLeDiagnoseRecordMapper;
import com.swsc.solarverse.service.forward.IForwardStringLeDiagnoseRecordService;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-05-08
 */
@Service
public class ForwardStringLeDiagnoseRecordServiceImpl extends ServiceImpl<ForwardStringLeDiagnoseRecordMapper, ForwardStringLeDiagnoseRecordDO> implements IForwardStringLeDiagnoseRecordService {

    @Override
    public LocalDateTime maxDiagnoseTime(Integer organNo) {
        return baseMapper.maxDiagnoseTime(organNo);
    }

    @Override
    public LocalDateTime maxDiagnoseTimeYesterday(Integer organNo) {
        return baseMapper.maxDiagnoseTimeYesterday(organNo);
    }

    @Override
    public LocalDateTime maxHisDiagnoseTime(Integer organNo) {
        return baseMapper.maxHisDiagnoseTime(organNo);
    }

    @Override
    public int insertIgnoreBatch(List<ForwardStringLeDiagnoseRecordDO> list) {
        return baseMapper.insertIgnoreBatch(list);
    }

    @Override
    public int insertIgnoreBatchYesterday(List<ForwardStringLeDiagnoseRecordDO> list) {
        return baseMapper.insertIgnoreBatchYesterday(list);
    }

    @Override
    public int deleteHisByDataTime(String diagnoseTime) {
        return baseMapper.deleteHisByDataTime(diagnoseTime);
    }

    @Override
    public int backupDiagnoseRecord() {
        return baseMapper.backupDiagnoseRecord();
    }

    @Override
    public int backupDiagnoseRecordByTimeRange(LocalDateTime beginTime, LocalDateTime endTime) {
        return baseMapper.backupDiagnoseRecordByTimeRange(beginTime, endTime);
    }

    @Override
    public List<ForwardStringLeDiagnoseRecordDO> diagnoseRecordHisResult(Integer tenantNo, Integer organNo, LocalDateTime diagnoseTime) {
        return baseMapper.diagnoseRecordHisResult(tenantNo, organNo, diagnoseTime);
    }
    @Override
    public List<ForwardStringLeDiagnoseRecordDO> diagnoseRecordYesterdayLow(Integer tenantNo, Integer organNo, LocalDateTime diagnoseTime) {
        return baseMapper.diagnoseRecordYesterdayLow(tenantNo, organNo, diagnoseTime);
    }
    @Override
    public List<ForwardStringLeDiagnoseRecordDO> diagnoseRecordYesterday(Integer tenantNo, Integer organNo, LocalDateTime diagnoseTime) {
        return baseMapper.diagnoseRecordYesterday(tenantNo, organNo, diagnoseTime);
    }

    @Override
    public LocalDateTime maxDiagnoseTimeByRange(Integer organNo, LocalDateTime diagnoseTimeGe, LocalDateTime diagnoseTimeLt) {
        return baseMapper.maxDiagnoseTimeByRange(organNo, diagnoseTimeGe, diagnoseTimeLt);
    }

    @Override
    public LocalDateTime minDiagnoseTimeByRange(Integer organNo, LocalDateTime diagnoseTimeGe, LocalDateTime diagnoseTimeLt) {
        return baseMapper.minDiagnoseTimeByRange(organNo, diagnoseTimeGe, diagnoseTimeLt);
    }

}
